package com.example.pkmedical.Utils;

import java.util.Date;

public class CommandUtil {
    //SPUtils.getInstance().put("TOZERO_DATA", TimeUtils.getNowData());
    //    SPUtils.getInstance().put("user_height",userheightEdit.getText().toString());存储患者身高
    //        SPUtils.getInstance().getInt("rollover_right_minute") +"分钟"; 存储的右翻自定义时间
//        SPUtils.getInstance().getInt("rollover_ping_minute") +"分钟";存储的平卧自定义时间
//        SPUtils.getInstance().getInt("rollover_left_minute") +"分钟";存储的左翻自定义时间
//        SPUtils.getInstance().getInt("rollover_left_bfb")*10+"%";存储的左翻自定义百分比
//        SPUtils.getInstance().getInt("rollover_right_bfb") *10+"%";存储的右翻自定义百分比
//        int head = SPUtils.getInstance().getInt("comfortable_HeadNum", 3);存储的舒适模式头部档位
//        int hip = SPUtils.getInstance().getInt("comfortable_HipNum", 3);存储的舒适模式臀部档位
//        int foot = SPUtils.getInstance().getInt("comfortable_FootNum", 3);存储的舒适模式腿部档位
//        int foot = SPUtils.getInstance().getInt("shock_time_qiaoji", 3);存储的敲击定制时间
//        int foot = SPUtils.getInstance().getInt("shock_time_zhendong", 3);存储的震动定制时间
//        int foot = SPUtils.getInstance().getInt("shock_qiangdu_qiaoji", 3);存储的敲击定制强度
//        int foot = SPUtils.getInstance().getInt("shock_qiangdu_zhendong", 3);存储的震动定制强度
    public static long WEIGHT_DESTORY_ID = 1;

    public static boolean IS_CAN_REQUEST = true;// 是否后背0度可以称重

    public static boolean HOUBEI_ISZERO = true;// 是否后背0度可以称重
    public static boolean CHUANGTI_ISZERO = true;// 是否床体0度可以称重

    public static int LEAVEBED_TYPE = 0;// 离床报警选中类型：1：位置，2正在，3：已经，0，关闭
    public static int HEAD_WARNING_TYPE = 0;// 头部倾角报警选中类型：1：30°，2：45°，0：关闭
    public static final String PASSWORD = "000000";
    public static final int ONE_MINUTE = 680000;
    //    public static final int TWO_MINUTE = 120000;
    public static final int THREE_MINUTE = 180000;
    public static final int TEN_MINUTE = 600000;
    public static final int FIFTEEN_MINUTE = 900000;
    public static final int THIRTY_MINJUTE = 30000;
    public static int ZERO_TYPE = 0;//1:归零称重器，2：新患者
    public static int COMPANY_TYPE = 0;//0:千克，1：磅
    public static int HEIGHT_COMPANY_TYPE = 0;//0:cm，1：英寸
    public static int ADD_PLUS_TYPE = 0;//0:只有患者，1：增加了物品
    public static boolean RALL_ONE = false;//一号护栏状态 true：安装，false，放下
    public static boolean RALL_TWO = false;//二号护栏状态 0：安装，1，放下
    public static boolean RALL_THREE = false;//三号护栏状态 0：安装，1，放下
    public static boolean RALL_FOUR = false;//四号护栏状态 0：安装，1，放下
    public static boolean IS_LEFT_RIGHT_ALL = false;//是否为左右翻状态
    public static boolean IS_LEFT_RIGHT_ANOTHER = false;//是否为首页左右翻状态


    public static int BED_FRONT = 0;//床体后背角度
    public static int BED_AFTER = 0;//床体腿部
    public static boolean CRUSHI_TYPE = false;//气垫状态（连接断开）
    public static final int WARNING_DEVIATION = 20;
    //    //首页的气垫状态0:常规模式，1：舒适模式，2：睡眠模式，3：左翻模式，4：最大充气，5右翻模式，6臀部放气，7rest模式
//    public static int HOME_QIDIAN_TEXT = 0;
    //称重-称重器
    public static boolean IS_FIRST = true;//是否为第一次称重
    //侧翻界面返回
//    public static boolean IS_GOBACK = false;//是否为第一次称重
    //敲击震动位置修改状态
    // 0:默认不做侧翻/平卧，
    // 1：左侧翻
    // 2：右侧翻
    // 3：侧翻整装
    // 4：侧翻中等
    // 5：侧翻最低
    // 6：侧翻定制
    public static int SHOCK_POSITION_TYPE = 0;
    //敲击强度:1:关闭，2：低，3：中，4：高
    public static int SHOCK_QIAOJI_STRENGTH = 3;
    //震动强度1:关闭，2：低，3：中，4：高
    public static int SHOCK_ZHENDONG_STRENGTH = 3;
    //敲击BPS:
    public static int SHOCK_QIAOJI_BPS = 10;
    //震动BPS:
    public static int SHOCK_ZHENDONG_BPS = 10;
    //敲击默认时间
    public static int SHOCK_QIAOJI_TIME = 10;
    //震动默认时间
    public static int SHOCK_ZHENDONG_TIME = 10;
    //舒适模式默认
    public static final int CHANGGUI_HEAD = 3;//头部
    public static final int CHANGGUI_HIP = 3;//屁股
    public static final int CHANGGUI_FOOT = 3;//腿部
    //侧翻定制默认数据
    public static final int ROLLOVER_LEFT_TIME = 3;//左翻定制1分钟
    public static final int ROLLOVER_PING_TIME = 3;//平卧定制1分钟
    public static final int ROLLOVER_RIGHT_TIME = 3;//右翻定制1分钟
    public static final int ROLLOVER_RIGHT_NUM = 6;//右翻定制60%
    public static final int ROLLOVER_LEFT_NUM = 6;//左翻定制60%
    //归零默认时间
    public static final String TOZERO_DEFAULT_TIME = "不适用";//左翻定制60%
    public static boolean IS_ROLLOVEW_SHOCK = false;//敲击震动界面是否为运行
    //100KG临界充气
    public static boolean IS_100_AIR = true;//100千克临界充放气是否开启（默认开启）

    //初始值发送
    public static final byte[] APP_STARTED = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0b};//程序已启动

    //常规模式界面
    public static final byte[] CHANGGUI_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x01};//常规模式
    public static final byte[] CHANGGUI_TTYPE_CHAIR = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x11};//常规模式一键移位

    public static final byte[] SELLP_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x02};//睡眠模式
    public static final byte[] ZUIDACHONGQI_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x03};//最大充气
    public static final byte[] ZUIDACHONGQI_TTYPE_HOUR = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x0d};//最大充气一小时
    public static final byte[] TUNBUFANGQI_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x04};//臀部放气
    public static final byte[] ZUOFAN_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x05};//左翻模式
    public static final byte[] YOUFAN_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x06};//右翻模式
    public static final byte[] SHUSHI_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x07};//舒适模式
    public static final byte[] REST_TTYPE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x08};//Rest模式
    public static final byte[] SHUSHI_DEFAULT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x04, 0x07, 0x03, 0x03, 0x03};//舒适模式默认333
    public static final byte[] REST_ONE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x08, 0x01, 0x02};//rest状态1
    public static final byte[] REST_TWO = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x08, 0x02, 0x02};//rest状态2
    public static final byte[] REST_THREE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x08, 0x02, 0x01};//rest状态3
    public static final byte[] REST_FOUR = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x08, 0x02, 0x02};//rest状态4
    public static final byte[] HELP_BED = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x0c};
    public static final byte[] HIP_LEG_VENTING = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x0e};//臀部腿部放气
    public static final byte[] HOUBEI_ON = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x02, 0x0f, 0x01};//开启背部充气
    public static final byte[] HOUBEI_OFF = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x02, 0x0f, 0x02};//关闭背部充气
    public static final byte[] STOP_ALL_GO_CHAIR = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x02, 0x10, 0x01};//


    //初始值发送
    public static final byte[] HIP_LEG_VENTING_OK = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0c};//臀部腿部放气完成

    public static final byte[] IN_ZDCQ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x03};
    public static final byte[] OUT_ZDCQ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x04};
    public static final byte[] OUT_HELP = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x05};
    public static final byte[] HL_GO_CHANGGUI = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0d};//返回常规
    //侧翻界面
    public static final byte[] CEFAN_HIGH_RIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x01, 0x01};//侧翻-整装-右翻
    public static final byte[] CEFAN_HIGH_PING = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x01, 0x02};//侧翻-整装-平卧
    public static final byte[] CEFAN_HIGH_LEFT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x01, 0x03};//侧翻-整装-左翻

    public static final byte[] CEFAN_SECONDARY_RIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x02, 0x01};//侧翻-一般-右翻
    public static final byte[] CEFAN_SECONDARY_PING = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x02, 0x02};//侧翻-一般-平卧
    public static final byte[] CEFAN_SECONDARY_LEFT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x02, 0x03};//侧翻-一般-左翻

    public static final byte[] CEFAN_LOW_RIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x03, 0x01};//侧翻-最低-右翻
    public static final byte[] CEFAN_LOW_PING = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x03, 0x02};//侧翻-最低-平卧
    public static final byte[] CEFAN_LOW_LEFT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x03, 0x03};//侧翻-最低-左翻
    //侧翻自定义
    public static final byte[] CEFAN_CUNTOMIZED_RIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x04, 0x09, 0x04, 0x01, 0x10};//侧翻-自定义-右翻
    public static final byte[] CEFAN_CUNTOMIZED_PING = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x03, 0x09, 0x04, 0x02};//侧翻-自定义-平卧
    public static final byte[] CEFAN_CUNTOMIZED_LEFT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x04, 0x09, 0x04, 0x03, 0x10};//侧翻-自定义-左翻

    //敲击震动
    public static final byte[] SHOCK_HIGH_QJ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x01, 0x04, 0x05, 0x04};//震动-整装-敲击
    public static final byte[] SHOCK_HIGH_ZD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x01, 0x05, 0x15, 0x04};//震动-整装-震动

    public static final byte[] SHOCK_SECONDARY_QJ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x02, 0x04, 0x05, 0x03};//震动-中等-敲击
    public static final byte[] SHOCK_SECONDARY_ZD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x02, 0x05, 0x13, 0x03};//震动-中等-震动

    public static final byte[] SHOCK_LOW_QJ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x03, 0x04, 0x04, 0x02};//震动-最低-敲击
    public static final byte[] SHOCK_LOW_ZD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x03, 0x05, 0x10, 0x02};//震动-最低-震动

    //敲击震动
    public static final byte[] SHOCK_ZDY_QJ = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x04, 0x04, 0x10, 0x03};//震动-整装-敲击
    public static final byte[] SHOCK_ZDY_ZD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x05, 0x0a, 0x04, 0x05, 0x10, 0x03};//震动-整装-震动
    public static final byte[] CEFAN_STOP = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x02, 0x0b, 0x01};//停止侧翻指令

    //砝码重量
    public static final byte[] CALIBRATION_WEIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x02, 0x00};//砝码重量
    //床体清零(矫正)
    public static final byte[] CALIBRATION_TOZERO = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x01};
    //床体清零
    public static final byte[] CALIBRATION_TOZERO_TWO = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x07};
    //获取重量
    public static final byte[] GET_WEIGHT = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x08};
    //获取重量(add)
    public static final byte[] GET_WEIGHT_ADD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x09};

    //获取重量(离床报警)
    public static final byte[] GET_WEIGHT_LEAVE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0xa};
    //获取重量(离床报警停止)
    public static final byte[] GET_WEIGHT_LEAVE_STOP = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x0b};
    //矫正1
    public static final byte[] SENCOR_ONE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x02};
    //矫正2
    public static final byte[] SENCOR_TWO = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x03};
    //矫正3
    public static final byte[] SENCOR_THREE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x04};
    //矫正4
    public static final byte[] SENCOR_FOUR = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x05};
    //矫正总
    public static final byte[] SENCOR_ALL = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x09, 0x02, 0x01, 0x06};

    //护栏
    public static final byte[] GET_RAIL_STATE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x01};
    //角度
    public static final byte[] GET_BED_ANGLE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x02};
    //报警
    public static final byte[] REMIND_MESSAGE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x06};
    //离床报警滴滴开
    public static final byte[] LEAVEBED_OPEN_DIDI = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x07};
    //离床报警滴滴关
    public static final byte[] LEAVEBED_CLOSE_DIDI = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x08};
    //头部倾角报警滴滴开
    public static final byte[] HEAD_OPEN_DIDI = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x09};
    //头部倾角报警滴滴关
    public static final byte[] HEAD_CLOSE_DIDI = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0a};

    public static final byte[] CHAIR_CANCLE = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0e};//程序已启动


    //100KG临界充放气
    public static final byte[] INFILATION = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x12};//充气
    public static final byte[] NO_INFILATION = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x13};//放气

    public static final byte[] REQUEST_IS_CUSHION = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x14};//请求气垫状态

    public static final byte[] PAUSE_CRFAN = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x15};//侧翻暂停

//    public static final byte[] PAUSE_QJZD = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x15};//敲击震动暂停

    //收到板子上电后的回应消息
//    public static final byte[] NO_INFILATION = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x08, 0x01, 0x13};//放气
    public static final String STARTDATE = "2021-11-19 15:50";//计时开始时间
    public static final String STOPDATE = "2022-01-01 00:00";//计时结束时间

    public static Boolean ISJISHI = true;//

    public static int TYPR_QJCF = 0;

    public static boolean IN_HEADBLOOD = false;

    public static int DEFAULT_HEAD_TYPE = 0;

    public static final byte[] QIANQING_1 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x0f};//前倾状态1

    public static final byte[] QIANQING_0 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x10};//前倾状态0


    public static final byte[] HOUQING_1 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x11};//后倾状态1

    public static final byte[] HOUQING_0 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x12};//后倾状态0


    public static final byte[] BOOST_1 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x13};//boost状态1

    public static final byte[] BOOST_0 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x14};//boost状态0

    public static final byte[] CHAIR_1 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x15};//chair状态1

    public static final byte[] CHAIR_0 = new byte[]{0x5a, (byte) 0xa5, 0x00, 0x01, 0x02, 0x07, 0x16};//chair状态0



}
